<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>iframe无自动页面刷新</title>
    <script>
        function go() {
           var url=document.getElementById("url").value();
document.getElementById("iframe1").src="url";
        }
    </script>
</head>
<body>
<div>
    <p>请输入网址：</p>
    <p>
        <input type="text" id="url" value="https://blog.csdn.net/qq_33369905/article/details/105828924">
        <input type="button" value="提交" onclick="go()">
    </p>
</div>
<!--iframe，包含一个内联框架-->
<div>
<iframe id="iframe1" style="width: 100%;height: 500px"></iframe>
</div>
</body>
</html>